home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / MacTech® Magazine / Volume 13 - 1997 (partial) / 13.04 Apr 97 / OpenDocExtentions / SelectPart / DataTransferExt / TextTransferExt.idl < prev    next >
Encoding:
Text File  |  1996-06-19  |  1.6 KB  |  72 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        TextTransferExt.idl
  3.  
  4.     Contains:    Text Transfer Extension interface
  5.  
  6.     Written by:    Andrey Dolgachev
  7.  
  8.     Copyright:    © 1995 by Apple Computer, Inc., all rights reserved.
  9. */
  10.  
  11. #ifndef _TEXTTRANSFEREXT_
  12. #define _TEXTTRANSFEREXT_
  13.  
  14. #ifndef _DATATRANSFEREXT_
  15. #include <DataTransferExt.idl>
  16. #endif
  17.  
  18. #ifndef _DATATRANSFERVERS_
  19. #include "DataTransferVers.h"
  20. #endif
  21.  
  22.  
  23. //==============================================================================
  24. // Classes used by this interface
  25. //==============================================================================
  26.  
  27. interface ODPart;
  28.  
  29. //==============================================================================
  30. #pragma somemittypes on
  31.  
  32. const ODISOStr kTextTransferExtension = "Apple Computer:Extension:TextTransfer";
  33.  
  34. //==============================================================================
  35. // DataTransferExt
  36. //==============================================================================
  37.  
  38. interface TextTransferExt : KSS::DataTransferExt
  39. {
  40.         void         InitTextTransferExt(in ODPart owner);
  41.         ODBoolean     GetSelection(out ODULong start, out ODULong end);
  42.         ODBoolean     SetSelection(in ODULong start, in ODULong end);
  43.         ODBoolean    AppendText(in ODPlatformType type, in ODByteArray data); 
  44.  
  45. #ifdef __SOMIDL__
  46.     implementation
  47.     {
  48.         majorversion = somClassMajorVersion;
  49.         minorversion = somClassMinorVersion;
  50.  
  51.         functionprefix = TextTransferExt__;
  52.  
  53.         override:
  54.             Release,
  55.             GetData,
  56.             SetData;
  57.             
  58.         releaseorder:
  59.             InitTextTransferExt,
  60.             GetSelection,
  61.             SetSelection,
  62.             AppendText;
  63.     };
  64.         
  65. #endif __SOMIDL__
  66.  
  67. };
  68.  
  69. #pragma somemittypes off
  70.  
  71. #endif
  72.